<?php
/*
Plugin Name: code_highlight
Version: 0.01
Plugin URL:
Description: 高亮显示文章中的代码。
Author: snow
Author Email: delmeok@gmail.com
Author URL: http://www.emlog.net/blog/
*/

!defined('EMLOG_ROOT') && exit('access deined!');

function code_highlight()
{
       echo '
<link type="text/css" rel="stylesheet" href="content/plugins/code_highlight/dp.SyntaxHighlighter/Styles/SyntaxHighlighter.css"></link>
<script language="javascript" src="content/plugins/code_highlight/dp.SyntaxHighlighter/Scripts/shCore.js"></script>
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = "content/plugins/code_highlight/dp.SyntaxHighlighter/Scripts/clipboard.swf";
dp.SyntaxHighlighter.HighlightAll("code");
</script>';
}

addAction('index_head', 'code_highlight');

?>